Function: -some-->
-some--> is a macro defined in dash.el.
Signature
(-some--> EXPR &rest FORMS)
Documentation
Thread EXPR through FORMS via -->, while the result is non-nil.
When EXPR evaluates to non-nil, thread the result through the first of FORMS, and when that result is non-nil, thread it through the next form, etc.
Source Code
;; Defined in ~/.emacs.d/elpa/dash-20260221.1346/dash.el
(defmacro -some--> (expr &rest forms)
"Thread EXPR through FORMS via `-->', while the result is non-nil.
When EXPR evaluates to non-nil, thread the result through the
first of FORMS, and when that result is non-nil, thread it
through the next form, etc."
(declare (debug (form &rest &or symbolp consp)) (indent 1))
(if (null forms) expr
(let ((result (make-symbol "result")))
`(-some--> (-when-let (,result ,expr)
(--> ,result ,(car forms)))
,@(cdr forms)))))